home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
- "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
- <head>
- <title>MyServer Documentation - CGI - www.myserverproject.net</title>
- <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
- <meta http-equiv="Content-Style-Type" content="text/css" />
- <link rel="stylesheet" type="text/css" href="../style/myserver.css" />
- </head>
- <body>
- <table class="center" width="95%">
- <tr>
- <td class="center">
- <h1 class="title">CGI<br />
- </h1>
- CGI (Common Gateway Interface) is the standard way in which a web
- server passes a user's data to an application and then returns
- information to the user. CGI depends on scripts often written in
- languages such as <a href="php.html">PHP </a>or <a href="perl.html">Perl</a>
- to perform the actions that are requested by the user. In order
- to access the CGI script, the name of the application is indicated in
- the HTML code.<br />
- <br />
- For example, if you are creating the form, the URL of the script is
- indicated in the FORMS tag:<br />
- <p class="code"> <FORM METHOD=POST
- ACTION=www.myfiles.com/cgi-bin/myprog.pl><br />
- </p>
- <p>Note: Any Script Language that can pipe output can be
- used, though -
- you can have scripts in Shell Script, Python, etc. You just need
- to configure the correct MIME type, and your favorite scripting language
- will work in MyServer.</p>
-
- In order to keep all of the CGI scripts in one place, you can place a <span
- class="code">cgi-bin</span>
- directory in the <span class="code">web</span> directory in MyServer
- as seen below:<br />
- <br />
- <br />
- <div class="boxc"><img src="../images/myfiles.png" title=""
- alt="Web folder" width="468" height="260" /><br />
- </div>
- <div style="text-align: center;"><small>The cgi-bin directory is directly
- beneath the selected web folder.</small><br />
- </div>
- <br />
- <br />
- <br />
- However, CGI scripts can be placed anywhere as long as their location
- is indicated in the HTML code and they are mapped to be CGI through their extension.<br />
- <br />
- CGI scripts that a new process is created for every requests. This can cause some problems with
- performances but ensure some security as if the new process crashes the main MyServer process
- is not corrupted.
- <br />
- <br />
- </td>
- </tr>
- </table>
- </body>
- </html>
-